package syllabus.service.impl;

import java.util.List;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import syllabus.dao.PUserGroupMapper;
import syllabus.model.Criteria;
import syllabus.model.PUserGroup;
import syllabus.service.PUserGroupService;

@Service
public class PUserGroupServiceImpl implements PUserGroupService {
    @Autowired
    private PUserGroupMapper pUserGroupMapper;

    private static final Logger logger = LoggerFactory.getLogger(PUserGroupServiceImpl.class);

    public int countByExample(Criteria example) {
        int count = this.pUserGroupMapper.countByExample(example);
        logger.debug("count: {}", count);
        return count;
    }

    public PUserGroup selectByPrimaryKey(Integer id) {
        return this.pUserGroupMapper.selectByPrimaryKey(id);
    }

    public List<PUserGroup> selectByExample(Criteria example) {
        return this.pUserGroupMapper.selectByExample(example);
    }

    public int deleteByPrimaryKey(Integer id) {
        return this.pUserGroupMapper.deleteByPrimaryKey(id);
    }

    public int updateByPrimaryKeySelective(PUserGroup record) {
        return this.pUserGroupMapper.updateByPrimaryKeySelective(record);
    }

    public int updateByPrimaryKey(PUserGroup record) {
        return this.pUserGroupMapper.updateByPrimaryKey(record);
    }

    public int deleteByExample(Criteria example) {
        return this.pUserGroupMapper.deleteByExample(example);
    }

    public int updateByExampleSelective(PUserGroup record, Criteria example) {
        return this.pUserGroupMapper.updateByExampleSelective(record, example);
    }

    public int updateByExample(PUserGroup record, Criteria example) {
        return this.pUserGroupMapper.updateByExample(record, example);
    }

    public int insert(PUserGroup record) {
        return this.pUserGroupMapper.insert(record);
    }

    public int insertSelective(PUserGroup record) {
        return this.pUserGroupMapper.insertSelective(record);
    }
}